/* 导航栏 */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: calc(var(--space-unit) * 2);
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
  color: var(--text-primary);
  font-weight: 500;
}

.navbar-brand:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-link {
  padding-right: 0;
  padding-left: 0;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.navbar-toggler:hover {
  text-decoration: none;
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

.navbar-light .navbar-toggler {
  color: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* 底部导航栏 */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--bg-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1030;
  padding: calc(var(--space-unit) * 1) 0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 1);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-icon {
  font-size: 1.5rem;
  margin-bottom: calc(var(--space-unit) * 0.5);
}

/* 搜索栏 */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 1.5);
  margin: calc(var(--space-unit) * 1) 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 1);
  font-size: 1rem;
  outline: none;
}

.search-icon {
  color: var(--text-secondary);
  margin-right: calc(var(--space-unit) * 0.5);
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: calc(var(--space-unit) * 1) 0;
  margin-bottom: calc(var(--space-unit) * 1.5);
  list-style: none;
  background-color: transparent;
  border-radius: var(--radius);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: calc(var(--space-unit) * 0.5);
  padding-left: calc(var(--space-unit) * 0.5);
  color: var(--text-secondary);
  content: "/";
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}